<template>
   <div class="logo-container" @click="$router.push('/')">
        <img src="@/assets/atm.jpg" class="logo-container-img" alt="">
        <span v-show="opened" class="logo-container-title" title="春木易管理系统">春木易后台</span>
   </div>
</template>

<script setup lang='ts'>
defineProps(['opened'])
</script>
<style lang="scss" scoped>
.logo-container {
    height: 60px;
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    &-img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    &-title {
        flex: 1;
        font-size: 18px;
        font-weight: bold;
        color: #fff;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-left: 7px;
    }
}
</style>